package com.yuxinmuyu.sports_management.bean.entiy;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("s_teacher")
public class STeacher implements Serializable {

    @ApiModelProperty("'教师ID'")
    @TableId("TeacherID")
    private String teacherID;

    @ApiModelProperty("单位")
    private String deptID;

    @ApiModelProperty("教师姓名")
    private String teacherName;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("入职日期")
    private Date enteryDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("生日")
    private Date teacherBirth;

    @ApiModelProperty("性别")
    private String teacherSex;

    @ApiModelProperty("联系电话")
    private String phoneNumber;

    @ApiModelProperty("电子邮箱")
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("最后修改时间")
    private Date lastDate;

    @ApiModelProperty("操作人")
    private String operator;

}
